<?php
/* $Id: panel.php 70 2011-02-23 08:28:51Z jim2212001@gmail.com $ */
require_once 'config.php';
if(!isset($_GET['page'])){
  	redirectMsg('panel.php?page=profile');
}
$panelPage = array(//# will not show at the side menu
	'profile'=>'個人資料',
	'neworderlist'=>'新增專案',
	'orderlist'=>'我的專案',
	'editlist'=>'#'
);
$page = $_GET['page'];
if(!array_key_exists($page,$panelPage))
	exit('No Such Page');
$tpl->assign('subtitle',$panelPage[$page]);
require_once 'panel_'.$page.'.php';
$tpl->assign('page',$page);
$tpl->assign('panelPage',$panelPage);
$tpl->display('panel.htm');
?>
